package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.PortEntity;

/**
 * Created by xu_jiaHui on 2017/10/13.
 */
public class PortDto {
    private Integer portId;
    private Integer portNum;
    private Integer portState;
    private Double portMeterValue;
    private Double portMeterMin;
    private Double portMeterMax;
    private String deviceId;
    private String createTime;
    private String updateTime;

    public PortDto() {
    }

    public PortDto(Integer portId, Integer portNum, Integer portState, Double portMeterValue, Double portMeterMin, Double portMeterMax, String createTime, String updateTime) {
        this.portId = portId;
        this.portNum = portNum;
        this.portState = portState;
        this.portMeterValue = portMeterValue;
        this.portMeterMin = portMeterMin;
        this.portMeterMax = portMeterMax;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Integer getPortId() {
        return portId;
    }

    public void setPortId(Integer portId) {
        this.portId = portId;
    }

    public Integer getPortNum() {
        return portNum;
    }

    public void setPortNum(Integer portNum) {
        this.portNum = portNum;
    }

    public Integer getPortState() {
        return portState;
    }

    public void setPortState(Integer portState) {
        this.portState = portState;
    }

    public Double getPortMeterValue() {
        return portMeterValue;
    }

    public void setPortMeterValue(Double portMeterValue) {
        this.portMeterValue = portMeterValue;
    }

    public Double getPortMeterMin() {
        return portMeterMin;
    }

    public void setPortMeterMin(Double portMeterMin) {
        this.portMeterMin = portMeterMin;
    }

    public Double getPortMeterMax() {
        return portMeterMax;
    }

    public void setPortMeterMax(Double portMeterMax) {
        this.portMeterMax = portMeterMax;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public PortEntity toBean(){
        return  new PortEntity(portNum,portState,portMeterValue,portMeterMin,portMeterMax,deviceId);
    }
}
